import { Payload } from "../../../structures/dto/Payload";
import { Client } from "../../Client";

/*

{
    "t": "GUILD_APPLICATION_COMMAND_INDEX_UPDATE",
    "s": 30,
    "op": 0,
    "d": {
        "version": "1182965022578716703",
        "bot_users": [
            {
                "username": "MEE6",
                "public_flags": 65536,
                "id": "159985870458322944",
                "global_name": null,
                "discriminator": "4876",
                "bot": true,
                "avatar_decoration_data": null,
                "avatar": "b50adff099924dd5e6b72d13f77eb9d7"
            },
            {
                "username": "Pronoun Picker",
                "public_flags": 589824,
                "id": "832258414603534380",
                "global_name": null,
                "discriminator": "1780",
                "bot": true,
                "avatar_decoration_data": null,
                "avatar": "d742f3db887dfff568753ed5e9e62f4d"
            },
            {
                "username": "Electron Bouncer",
                "public_flags": 0,
                "id": "1162106427012292781",
                "global_name": null,
                "discriminator": "8986",
                "bot": true,
                "avatar_decoration_data": null,
                "avatar": "e38316ef0c8ff95cc122cfb0e70e061e"
            },
            {
                "username": "electrocat",
                "public_flags": 0,
                "id": "934142261967613982",
                "global_name": null,
                "discriminator": "7586",
                "bot": true,
                "avatar_decoration_data": null,
                "avatar": "1dc70e26b039b38c939eea52a9180638"
            },
            {
                "username": "Snowball Bot",
                "public_flags": 65536,
                "id": "914971233379045406",
                "global_name": null,
                "discriminator": "9462",
                "bot": true,
                "avatar_decoration_data": null,
                "avatar": "56ee846c658821cdc290c45615c6aa55"
            }
        ],
        "application_command_counts": {
            "1": 35
        },
        "guild_id": "745037351163527189"
    }

    export interface Root {
        version: string
        bot_users: BotUser[]
        application_command_counts: ApplicationCommandCounts
        guild_id: string
    }

    export interface BotUser {
        username: string
        public_flags: number
        id: string
        global_name: any
        discriminator: string
        bot: boolean
        avatar_decoration_data: any
        avatar: string
    }

    export interface ApplicationCommandCounts {
        "1": number
    }

}

*/

export function GUILD_APPLICATION_COMMAND_INDEX_UPDATE(client: Client, payload: Payload) {

    console.log("GUILD_APPLICATION_COMMAND_INDEX_UPDATE " + JSON.stringify(payload))

    return null;
}